<?php

function smarty_function_chtmlLink($params, &$smarty)
{
    echo CHtml::link($params['text'], $params['url'], $params['htmlOptions']);
}